home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / texinfo / C / Makefile.in < prev    next >
Makefile  |  1992-08-21  |  3KB  |  125 lines

  1. # Makefile for the info sources... -*- text -*-
  2. # Copyright (C) 1990, 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24.  
  25. CC = @CC@
  26. INSTALL = @INSTALL@
  27. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  28.  
  29. # Things you might add to DEFS:
  30. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  31. # -DHAVE_UNISTD_H    If you have unistd.h.
  32. # -DUSG            If you have System V/ANSI C string and
  33. #            memory functions and headers.
  34. # -DUSGr3        If you need to include sys/stream.h and sys/ptem.h
  35. #            to get the screen size from the kernel.
  36. DEFS = @DEFS@
  37.  
  38. CFLAGS = -g
  39. LDFLAGS = -g
  40.  
  41. LIBS = @LIBS@
  42.  
  43. # Colon-separated list of directories in which to look for info files.
  44. DEFAULT_INFOPATH = .:$(infodir):/usr/gnu/info:/usr/local/emacs/info:/usr/local/lib/emacs/info
  45.  
  46. # Command used to print out a text file.  The filename follows this command.
  47. INFO_PRINT_COMMAND = lpr
  48.  
  49. prefix = /usr/local
  50. exec_prefix = $(prefix)
  51.  
  52. # Where installed binaries go.
  53. bindir = $(exec_prefix)/bin
  54.  
  55. # Where info files go.
  56. infodir = $(prefix)/info
  57.  
  58. # Where manual pages go, and their extension (not including `.').
  59. mandir = $(prefix)/man/man1
  60. manext = 1
  61.  
  62. #### End of system configuration section. ####
  63.  
  64. PATHSPEC = -DDEFAULT_INFOPATH='"$(DEFAULT_INFOPATH)"'
  65. PRINTSPEC = -DINFO_PRINT_COMMAND='"$(INFO_PRINT_COMMAND)"'
  66. INFO_FLAGS = $(PATHSPEC) $(PRINTSPEC)
  67.  
  68. SOURCES = info.c makeinfo.c texindex.c getopt.c getopt1.c
  69. OBJECTS = info.o makeinfo.o texindex.o getopt.o getopt1.o
  70. HEADERS = getopt.h
  71. SUPPORT = Makefile.in configure 
  72.  
  73. THINGS_TO_TAR = $(SOURCES) $(HEADERS) $(SUPPORT)
  74.  
  75. PROGS = info makeinfo texindex
  76.  
  77. all: $(PROGS)
  78.  
  79. .c.o:
  80.     $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) $<
  81.  
  82. info:    info.o getopt.o getopt1.o
  83.     $(CC) $(LDFLAGS) -o $@ info.o getopt.o getopt1.o -ltermcap $(LIBS)
  84.  
  85. info.o: info.c
  86.     $(CC) -c $(CFLAGS) $(INFO_FLAGS) $(CPPFLAGS) $(DEFS) $(srcdir)/info.c
  87.  
  88. makeinfo: makeinfo.o getopt.o getopt1.o
  89.     $(CC) $(LDFLAGS) -o $@ makeinfo.o getopt.o getopt1.o $(LIBS)
  90.  
  91. makeinfo.o: makeinfo.c
  92.     $(CC) -c $(CFLAGS) $(MAKEINFO_FLAGS) $(CPPFLAGS) $(DEFS) $(srcdir)/makeinfo.c
  93.  
  94. texindex: texindex.o getopt.o getopt1.o
  95.     $(CC) $(LDFLAGS) -o $@ texindex.o getopt.o getopt1.o $(LIBS)
  96.  
  97. info.o makeinfo.o texindex.o getopt1.o: getopt.h
  98.  
  99. install: all
  100.     for f in $(PROGS); do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done
  101.  
  102. TAGS: $(SOURCES)
  103.     etags $(SOURCES)
  104.  
  105. clean:
  106.     rm -f $(PROGS) $(OBJECTS)
  107.  
  108. mostlyclean: clean
  109.  
  110. distclean: clean
  111.     rm -f Makefile config.status
  112.  
  113. realclean: distclean
  114.     rm -f TAGS
  115.  
  116. dist: $(THINGS_TO_TAR)
  117.     rm -rf info-dist
  118.     mkdir info-dist
  119.     (cd info-dist; for i in $(THINGS_TO_TAR); do ln -s ../$$i .; done)
  120.     tar chzf info.tar.Z info-dist
  121.     rm -rf info-dist
  122.  
  123. # Prevent GNU make v3 from overflowing arg limit on SysV.
  124. .NOEXPORT:
  125.